#ifndef _TOWERPANEL_H_
#define _TOWERPANEL_H_

#include <SFML/Graphics.hpp>

#include "Panel.hpp"


///////////////////////////////////////////////////////
/// \brief Tower Bar.
///
/// Diplayed on the right side of the screen.
/// Offers to the player the choice towers he can build
/// or just click on.
/// Click on a tower will display its information in
/// the information panel.
///
///////////////////////////////////////////////////////
class TowerPanel : public Panel
{
public:
    ///////////////////////////////////////////////////////
    /// \brief Construct the tower panel.
    ///
    /// \param window Window where the panel must be displayed.
    ///
    ///////////////////////////////////////////////////////
    TowerPanel(sf::RenderWindow* window);

    ///////////////////////////////////////////////////////
    /// \brief Destructor.
    ///
    ///////////////////////////////////////////////////////
    ~TowerPanel();

    ///////////////////////////////////////////////////////
    /// \brief Displays the tower panel.
    ///
    ///////////////////////////////////////////////////////
    void render();

    void handleEvents(const sf::Event& );
};


#endif /* _TOWERPANEL_H_ */
